<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
  <head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="/css/normalize.css">
    <link rel="stylesheet" href="/css/reset.css">
    <title>管理员查询界面</title>
  </head>
  <body>
  <table>
    <tr>
      <th>编号</th>
      <th>书名</th>
      <th>作者</th>
      <th>类型</th>
      <th>isbn</th>
      <th>库存</th>
      <th>价格</th>
      <th>操作</th>
    </tr>
    <tr th:each="book : ${bookList}">
      <td th:text="${book.id}"></td>
      <td th:text="${book.bookName}"></td>
      <td th:text="${book.author}"></td>
      <td th:text="${typeMap.get(book.typeId)}"></td>
      <td th:text="${book.isbn}"></td>
      <td th:text="${book.count}"></td>
      <td th:text="${book.price}"></td>
      <td><button><a th:href="@{|/admin/editBook?bookId=${book.id}|}" target="admin_view_frame">编辑</a></button></td>
    </tr>
  </table>
  </body>
</html>